<%--
  查询操作管理
  User: 刘军海
  Date: 2014/12/24 9:22
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="st" tagdir="/WEB-INF/tags" %>
<%@ taglib prefix="j" uri="j/tags" %>
<%@ taglib prefix="joyi" uri="http://www.joyi.cn/tags" %>

<st:page>
  <div data-options="region:'north',split:false" class="caption" style="height:30px;">
    查询操作
  </div>
  <div data-options="region:'center',split:false" style="width:200px;z-index: 999;">
    <joyi:dataGrid id="dg" key="queryOpts" toolbarId="toolbar" params="queryMdId=${param.queryId}"/>
    <div id="toolbar">
      <a href="#" id="addStyle" class="easyui-linkbutton" data-options="iconCls:'icon-add'" onclick="addNew(this);">增加操作</a>
    </div>
  </div>
  <script>
    function addNew(sender){
      j.open("/user/req?rid=<j:des data="REQ00000000000000139"/>&action=edit&queryId=${param.queryId}","editWin",{title:"增加查询操作"},350,300);
    }
    function deleteAction(actionId){
      if(window.confirm("确认要删除吗？")){
        Http.post("/user/req?rid=<j:des data="REQ00000000000000139"/>&action=delete",{queryActionId:actionId},function(data){
          alert("删除成功！") ;
          reload();
        });
      }
    }
    function reload(){
      $("#dg").datagrid("reload");
    }
  </script>
</st:page>
